package com.bingxue.edu.management.education.model.query;

import com.bingxue.edu.common.enums.ChangeTypeEnum;
import com.bingxue.edu.common.enums.OperateSourceEnum;
import com.bingxue.edu.framework.mybatis.query.Query;
import com.bingxue.edu.framework.mybatis.query.QueryType;
import com.bingxue.edu.management.education.model.entity.EnrollChangeRecord;
import com.mybatisflex.annotation.TableRef;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

@Data
@TableRef(EnrollChangeRecord.class)
@Schema(description = "变更记录查询条件")
public class EnrollChangeRecordQuery {

    @Schema(description = "变更类型")
    private ChangeTypeEnum changeType;

    @Schema(description = "班级id")
    @NotBlank(message = "班级id不能为空")
    @Query(type = QueryType.EQ,field = "originalClassId")
    private String classId;

    @Schema(description = "操作来源")
    private OperateSourceEnum operateSource;
}
